package com.sh.business.domain.bo;

import com.sh.business.domain.UserFundDetail;
import com.sh.common.mybatis.core.domain.BaseEntity;
import com.sh.common.core.validate.AddGroup;
import com.sh.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 用户资产明细业务对象 bms_user_fund_detail
 *
 * @author ruoyi
 * @date 2024-10-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = UserFundDetail.class, reverseConvertGenerate = false)
public class UserFundDetailBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 描述
     */
    @NotBlank(message = "描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String describes;

    /**
     * 描述
     */
    @NotBlank(message = "描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private List<String> describesList;

    /**
     * 资产类型 1、算力 2、usdt 3、aleo
     */
    @NotNull(message = "资产类型 1、算力 2、usdt 3、aleo不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 转入转出标识 -1：转出 1：转入
     */
    @NotNull(message = "转入转出标识 -1：转出 1：转入不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer transferFlag;

    /**
     * 订单编号
     */
    @NotBlank(message = "订单编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String orderNo;

    /**
     * 变动前
     */
    @NotNull(message = "变动前不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal pointBefore;

    /**
     * 数量
     */
    @NotNull(message = "数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal amount;

    /**
     * 变动后
     */
    @NotNull(message = "变动后不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal pointAfter;

    /**
     * hash
     */
    @NotBlank(message = "hash不能为空", groups = { AddGroup.class, EditGroup.class })
    private String txHash;

    /**
     * 存证时间
     */
    @NotNull(message = "存证时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date txTime;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
